package com.lwd.spring.study.service.impl;

import com.lwd.spring.study.entity.User;
import com.lwd.spring.study.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: 刘东（挂兰）
 * @Date: 2023/12/12 21:24:13
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserService userService;

    @Override
    public User getUser() {
        User user = new User();
        user.setPassword("p");
        user.setUsername("u");
        System.out.println("userService.getUser2() = " + userService.getUser2());
        return user;
    }


    @Override
    public User getUser2() {
        User user = new User();
        user.setPassword("p2");
        user.setUsername("u2");

        return user;
    }
}
